import request from '@/utils/request'

// 查询对象列表
export function listObject(query) {
  return request({
    url: '/rva/object/list',
    method: 'get',
    params: query
  })
}

// 查询对象详细
export function getObject(id) {
  return request({
    url: '/rva/object/' + id,
    method: 'get'
  })
}

// 新增对象
export function addObject(data) {
  return request({
    url: '/rva/object',
    method: 'post',
    data: data
  })
}

// 修改对象
export function updateObject(data) {
  return request({
    url: '/rva/object',
    method: 'put',
    data: data
  })
}

// 删除对象
export function delObject(id) {
  return request({
    url: '/rva/object/' + id,
    method: 'delete'
  })
}

// 导出对象
export function exportObject(query) {
  return request({
    url: '/rva/object/export',
    method: 'get',
    params: query
  })
}